std::tan

From Cppreference

Jump to: navigation, search
Defined in header <cmath>

float       tan( float arg );

double      tan( double arg );

long double tan( long double arg );

Computes tangent of arg

Parameters

arg - floating point value representing angle in radians

Return value

tangent of arg.

Domain error occurs if arg is infinite. ​NAN​ is returned in that case.

See also

sin
sine
(function)
cos
cosine
(function)
atan
arc tangent
(function)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages